<?php

namespace app\lib\MessageBus\works;


use app\common\model\user\User;
use app\common\service\TagsService;
use app\lib\MessageBus\base\AbstractWork;


/**
 * 支付未阅读校验
 *
 * Class PaymentTagsCallback
 * @package app\lib\MessageBus\works
 */
class PaymentTagsCallback extends AbstractWork
{
    public function handler($message)
    {
        dump("支付未阅读callback开始 用户ID-" . $message['user_id'] . date("Y-m-d H:i:s"), $message);
//        $user = User::where('user_id',$message['user_id'])->findOrEmpty();
        TagsService::matchTags(3,$message['user'],$message['order']);
        dump("支付未阅读callback结束 用户ID-" . $message['user_id'] . date("Y-m-d H:i:s"), $message);
    }

}
